Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to upstream-gate #25

Open
wants to merge 15 commits into
base: upstream-gate
Choose a base branch
from
Open

Update to upstream-gate #25

wants to merge 15 commits into from

Conversation

sparzych
Copy link
Collaborator

No description provided.

Copy link
Member

@BlurredChoise BlurredChoise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job. There are few things which you have to fix.
In particular, fix the tabs in the function GateTrajectoryNavigator::FindAnnihilationGammasTrackID() (file digits_hits/src/GateTrajectoryNavigator.cc) and make code more clear - at this moment it is hard to say what it does and does it work correctly.

Comment on lines -626 to -632
strcpy(theCRData.theComptonVolumeName1, G4String("NULL").c_str());
strcpy(theCRData.theComptonVolumeName2, G4String("NULL").c_str());
strcpy(theCRData.theRayleighVolumeName1, G4String("NULL").c_str());
strcpy(theCRData.theRayleighVolumeName2, G4String("NULL").c_str());
m_ionDecayPos = G4ThreeVector(0., 0., 0.);
m_positronGenerationPos = G4ThreeVector(0., 0., 0.);
m_positronAnnihilPos = G4ThreeVector(0., 0., 0.);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion m_ionDecayPos, m_positronGenerationPos and m_positronAnnihilPos should be present in the method GateToRoot::RecordBeginOfEvent. They should be reseted for each event.

In my opinion, you accidentally deleted these lines - this won't show up as a compile-time error, but it's a runtime error.

Please compare your code with https://github.com/OpenGATE/Gate/blob/develop/source/digits_hits/src/GateToRoot.cc#L607

<< " --- current one read from last Tracks Root File " << fTracksFN << " is " << EventID
<< Gateendl;
if (EventID != lastEventID)
{ // if ( m_verboseLevel > 3 ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can delete commented code // if ( m_verboseLevel > 3 ) { and //}

source/digits_hits/src/GateTrajectoryNavigator.cc Outdated Show resolved Hide resolved
source/digits_hits/src/GateTrajectoryNavigator.cc Outdated Show resolved Hide resolved
source/digits_hits/src/GateTrajectoryNavigator.cc Outdated Show resolved Hide resolved
@sparzych sparzych requested a review from BlurredChoise July 12, 2023 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants